<template>
  <div>
    <navs></navs>
    <div class="box-wrap">
      <div>
        <p>今日必抢</p>
        <span @click="$router.push('/showList')">更多</span>
      </div>
      <div class="tedyBuy-wrap">
        <div
          class="recomm-wrap"
          v-for="(item, index) in listNav"
          @click="$router.push('/showList')"
        >
          <img :src="item.haibao" alt="" />
          <p>{{ item.title1 }}</p>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import navs from "./search.vue";
export default {
  props: ["listNav"],
  name: "WorkspaceJsonDaybuy",

  data() {
    return {};
  },
  components: {
    navs,
  },
  mounted() {},

  methods: {},
};
</script>

<style lang="scss" scoped>
.box-wrap {
  background: #fff;
  border-top-right-radius: 15px;
  border-top-left-radius: 15px;
  width: 100%;
  padding: 10px;
  box-sizing: border-box;
  > div {
    display: flex;
    justify-content: space-between;
    > span {
      color: rgb(43, 42, 42);
      font-size: 15px;
      font-weight: bold;
    }
    > p {
      font-weight: bold;
      font-size: 22px;
      margin-top: -5px;
    }
  }
  .tedyBuy-wrap {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: space-between;
    .recomm-wrap {
      width: 30%;
      > img {
        width: 100%;
        height: aoto;
        border-radius: 10px;
      }
      > p {
        font-size: 12px;
        font-weight: 600;
        color: rgb(100, 98, 98);
      }
    }
  }
}
</style>